<template>
  <el-dialog title="初始密码修改" :close-on-click-modal="false" :visible.sync="visible" class="cu-dialog cu-dialog_center" lock-scroll width="500px">
    <el-form ref="dataForm" :model="dataForm" :rules="dataRule" label-width="100px">
      <el-form-item label="旧密码" prop="oldPassword">
        <el-input v-model="dataForm.oldPassword" placeholder="旧密码" show-password />
      </el-form-item>
      <el-form-item label="新密码" prop="password">
        <el-input v-model="dataForm.password" placeholder="新密码" show-password />
      </el-form-item>
      <el-form-item label="重复密码" prop="password2">
        <el-input v-model="dataForm.password2" placeholder="重复密码" show-password />
      </el-form-item>
      <el-form-item label="验证码" prop="code">
        <el-col :span="17">
          <el-input v-model="dataForm.code" placeholder="验证码"></el-input>
        </el-col>
        <el-col :span="6" :offset="1" style="height:32px">
          <img id="imgcode" alt="点击切换验证码" title="点击切换验证码" :src="define.comUrl + imgUrl" @click="changeImg" />
        </el-col>
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button type="primary" @click="dataFormSubmit()" >确 定</el-button>
    </span>
  </el-dialog>
</template>
<script>
export { default } from './index.js'
</script>
